import React from 'react';
import { Form } from '@ant-design/compatible';
import '@ant-design/compatible/assets/index.css';
import { FundApplicationIndustryC, FirstHeaderC } from '../../../comps';

class FundApplicationIndustry extends React.Component {
  constructor() {
    super();
    this.state = {
      values: 'B06',
    };
  }
  componentDidMount() {}

  render() {
    return (
      <>
        <FirstHeaderC title='没有初始值的情况'></FirstHeaderC>
        <FundApplicationIndustryC title='资金运用行业' dataIndex='rateIndustry' form={this.props.form}></FundApplicationIndustryC>
        <FirstHeaderC title='有初始值的情况'></FirstHeaderC>
        <FundApplicationIndustryC
          onRef={(ref) => (this.refs = ref)}
          title='资金运用行业'
          dataIndex='rateIndustry1'
          form={this.props.form}
          initialValue={this.state.values}
        ></FundApplicationIndustryC>
        <FirstHeaderC title='只有一层的数据展示'></FirstHeaderC>
        <FundApplicationIndustryC
          onRef={(ref) => (this.refs = ref)}
          title='资金运用行业'
          dataIndex='rateIndustry2'
          form={this.props.form}
          OnlySupportFirstLevel={true}
          parentCanClick={true}
        ></FundApplicationIndustryC>
      </>
    );
  }
}

export default Form.create()(FundApplicationIndustry);
